package cn.hdu.liang.nio;

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.stream.Collectors;

public class PathTest {
    public static void main(String[] args) throws IOException {
        Path path = Paths.get("out/liang.txt");
        System.out.println(path);
        System.out.println(Files.list(Paths.get("src")).collect(Collectors.toList()));
        System.out.println(Files.walk(Paths.get(".")).collect(Collectors.toList()));
    }
}
